package com.ruoyi.factory.taskShow.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @ClassName TaskShow
 * @Description TODO
 * @Author liujiaji
 * @Date 2022/6/20 10:32
 */
public class TaskShow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 详情 */
    @Excel(name = "详情")
    private String detail;

    /** 优先级 0-Low, 1-Middle, 2-High  */
    @Excel(name = "优先级")
    private String priority;

    /** 父id */
    @Excel(name = "父id")
    private String parentId;

    /** 父标题名称 */
    @Excel(name = "父标题名称")
    private String parentTitle;

    /** 状态 0-规划中, 1-实现中,2-已实现, */
    @Excel(name = "状态")
    private String state;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createName;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updateName;

    /** 预计任务开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计任务开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskStartDate;

    /** 预计任务结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计任务结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskEndDate;

    /** 任务进度百分比 */
    @Excel(name = "任务进度百分比")
    private String schedulePercent;

    private String workDay;

    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    private String days;

    public String getWorkDay() {
        return workDay;
    }

    public void setWorkDay(String workDay) {
        this.workDay = workDay;
    }

    public String getDays() {
        return days;
    }

    public void setDays(String days) {
        this.days = days;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /** 子任务 */
    private List<TaskShow> children = new ArrayList<TaskShow>();

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setDetail(String detail)
    {
        this.detail = detail;
    }

    public String getDetail()
    {
        return detail;
    }
    public void setPriority(String priority)
    {
        this.priority = priority;
    }

    public String getPriority()
    {
        return priority;
    }
    public void setParentId(String parentId)
    {
        this.parentId = parentId;
    }

    public String getParentId()
    {
        return parentId;
    }
    public void setParentTitle(String parentTitle)
    {
        this.parentTitle = parentTitle;
    }

    public String getParentTitle()
    {
        return parentTitle;
    }
    public void setState(String state)
    {
        this.state = state;
    }

    public String getState()
    {
        return state;
    }
    public void setCreateName(String createName)
    {
        this.createName = createName;
    }

    public String getCreateName()
    {
        return createName;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setUpdateName(String updateName)
    {
        this.updateName = updateName;
    }

    public String getUpdateName()
    {
        return updateName;
    }
    public void setTaskStartDate(Date taskStartDate)
    {
        this.taskStartDate = taskStartDate;
    }

    public Date getTaskStartDate()
    {
        return taskStartDate;
    }
    public void setTaskEndDate(Date taskEndDate)
    {
        this.taskEndDate = taskEndDate;
    }

    public Date getTaskEndDate()
    {
        return taskEndDate;
    }
    public void setSchedulePercent(String schedulePercent)
    {
        this.schedulePercent = schedulePercent;
    }

    public String getSchedulePercent()
    {
        return schedulePercent;
    }

    public List<TaskShow> getChildren()
    {
        return children;
    }

    public void setChildren(List<TaskShow> children)
    {
        this.children = children;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("detail", getDetail())
                .append("priority", getPriority())
                .append("parentId", getParentId())
                .append("parentTitle", getParentTitle())
                .append("state", getState())
                .append("createName", getCreateName())
                .append("userId", getUserId())
                .append("updateName", getUpdateName())
                .append("taskStartDate", getTaskStartDate())
                .append("taskEndDate", getTaskEndDate())
                .append("schedulePercent", getSchedulePercent())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
